package com.onadake.web.controller.user;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * Model object for the chat message filtering.
 * 
 * @author radek.hecl
 *
 */
public class ChatMessageFilterModel {

    /**
     * From which element select should be.
     */
    @SuppressWarnings("unused")
    private long from;
    
    /**
     * Limit of the number of selected elements.
     */
    @SuppressWarnings("unused")
    private int limit;
    
    /**
     * Filter for insert timestamp until the specified one. If not empty, then format is yyyy/MM/dd HH:mm:ss.SSS in UTC time.
     * Then it will select only messages inserted strictly before this timestamp.
     */
    @SuppressWarnings("unused")
    private String firstUtcInsertTimestamp;
    
    /**
     * Creates new instance.
     */
    public ChatMessageFilterModel() {
    }
    
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
